package com.zss.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName tb_accountant
 */
@TableName(value ="tb_accountant")
public class Accountant implements Serializable {
    /**
     *
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 地区id
     */
    private Integer aid;

    /**
     * 地区名称
     */
    private String aname;

    /**
     * 提成
     */
    private Integer commission;

    /**
     * 保险
     */
    private Integer insurance;

    /**
     * 经营费用
     */
    private Integer operate;

    /**
     * 大车费用
     */
    private Integer vehicle;

    /**
     * 装卸组
     */
    private Integer loadings;

    /**
     * 返程收入
     */
    private Integer returnIncome;

    /**
     * 总运费
     */
    private Integer totalFreight;

    /**
     * 公司理赔
     */
    private Integer companyClaims;

    /**
     * 分公司理赔
     */
    private Integer branchClaims;

    private Date createTime;
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 地区id
     */
    public Integer getAid() {
        return aid;
    }

    /**
     * 地区id
     */
    public void setAid(Integer aid) {
        this.aid = aid;
    }

    /**
     * 地区名称
     */
    public String getAname() {
        return aname;
    }

    /**
     * 地区名称
     */
    public void setAname(String aname) {
        this.aname = aname;
    }

    /**
     * 提成
     */
    public Integer getCommission() {
        return commission;
    }

    /**
     * 提成
     */
    public void setCommission(Integer commission) {
        this.commission = commission;
    }

    /**
     * 保险
     */
    public Integer getInsurance() {
        return insurance;
    }

    /**
     * 保险
     */
    public void setInsurance(Integer insurance) {
        this.insurance = insurance;
    }

    /**
     * 经营费用
     */
    public Integer getOperate() {
        return operate;
    }

    /**
     * 经营费用
     */
    public void setOperate(Integer operate) {
        this.operate = operate;
    }

    /**
     * 大车费用
     */
    public Integer getVehicle() {
        return vehicle;
    }

    /**
     * 大车费用
     */
    public void setVehicle(Integer vehicle) {
        this.vehicle = vehicle;
    }

    /**
     * 装卸组
     */
    public Integer getLoadings() {
        return loadings;
    }

    /**
     * 装卸组
     */
    public void setLoadings(Integer loadings) {
        this.loadings = loadings;
    }

    /**
     * 返程收入
     */
    public Integer getReturnIncome() {
        return returnIncome;
    }

    /**
     * 返程收入
     */
    public void setReturnIncome(Integer returnIncome) {
        this.returnIncome = returnIncome;
    }

    /**
     * 总运费
     */
    public Integer getTotalFreight() {
        return totalFreight;
    }

    /**
     * 总运费
     */
    public void setTotalFreight(Integer totalFreight) {
        this.totalFreight = totalFreight;
    }

    /**
     * 公司理赔
     */
    public Integer getCompanyClaims() {
        return companyClaims;
    }

    /**
     * 公司理赔
     */
    public void setCompanyClaims(Integer companyClaims) {
        this.companyClaims = companyClaims;
    }

    /**
     * 分公司理赔
     */
    public Integer getBranchClaims() {
        return branchClaims;
    }

    /**
     * 分公司理赔
     */
    public void setBranchClaims(Integer branchClaims) {
        this.branchClaims = branchClaims;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Accountant other = (Accountant) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAid() == null ? other.getAid() == null : this.getAid().equals(other.getAid()))
            && (this.getAname() == null ? other.getAname() == null : this.getAname().equals(other.getAname()))
            && (this.getCommission() == null ? other.getCommission() == null : this.getCommission().equals(other.getCommission()))
            && (this.getInsurance() == null ? other.getInsurance() == null : this.getInsurance().equals(other.getInsurance()))
            && (this.getOperate() == null ? other.getOperate() == null : this.getOperate().equals(other.getOperate()))
            && (this.getVehicle() == null ? other.getVehicle() == null : this.getVehicle().equals(other.getVehicle()))
            && (this.getLoadings() == null ? other.getLoadings() == null : this.getLoadings().equals(other.getLoadings()))
            && (this.getReturnIncome() == null ? other.getReturnIncome() == null : this.getReturnIncome().equals(other.getReturnIncome()))
            && (this.getTotalFreight() == null ? other.getTotalFreight() == null : this.getTotalFreight().equals(other.getTotalFreight()))
            && (this.getCompanyClaims() == null ? other.getCompanyClaims() == null : this.getCompanyClaims().equals(other.getCompanyClaims()))
            && (this.getBranchClaims() == null ? other.getBranchClaims() == null : this.getBranchClaims().equals(other.getBranchClaims()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAid() == null) ? 0 : getAid().hashCode());
        result = prime * result + ((getAname() == null) ? 0 : getAname().hashCode());
        result = prime * result + ((getCommission() == null) ? 0 : getCommission().hashCode());
        result = prime * result + ((getInsurance() == null) ? 0 : getInsurance().hashCode());
        result = prime * result + ((getOperate() == null) ? 0 : getOperate().hashCode());
        result = prime * result + ((getVehicle() == null) ? 0 : getVehicle().hashCode());
        result = prime * result + ((getLoadings() == null) ? 0 : getLoadings().hashCode());
        result = prime * result + ((getReturnIncome() == null) ? 0 : getReturnIncome().hashCode());
        result = prime * result + ((getTotalFreight() == null) ? 0 : getTotalFreight().hashCode());
        result = prime * result + ((getCompanyClaims() == null) ? 0 : getCompanyClaims().hashCode());
        result = prime * result + ((getBranchClaims() == null) ? 0 : getBranchClaims().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", aid=").append(aid);
        sb.append(", aname=").append(aname);
        sb.append(", commission=").append(commission);
        sb.append(", insurance=").append(insurance);
        sb.append(", operate=").append(operate);
        sb.append(", vehicle=").append(vehicle);
        sb.append(", loadings=").append(loadings);
        sb.append(", returnIncome=").append(returnIncome);
        sb.append(", totalFreight=").append(totalFreight);
        sb.append(", companyClaims=").append(companyClaims);
        sb.append(", branchClaims=").append(branchClaims);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
